﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace chapter_4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

        }


        protected override void OnLoad(EventArgs e)
        {
            //ToolStripItemCollection k = new ToolStripItemCollection(null,cbMenuPhoto.Items);
            imageToolStripMenuItem.DropDown = cbMenuPhoto;
            foreach(var a in imageIToolStripMenuItem.DropDown.Items)
            {
                MessageBox.Show(a.ToString());
            }
            //MessageBox.Show(imageIToolStripMenuItem.DropDownDirection.ToString());
            base.OnLoad(e);
        }

        private void imageIToolStripMenuItem_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }


        private void ProcessImage(ToolStripItemClickedEventArgs e)
        {
            ToolStripItem item = e.ClickedItem;

        }
    }
}
